home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-08-30 | 2.0 KB | 46 lines | [TEXT/Earl] |
- PseudoPS is a very small PostScript interpreter. This version reads PostScript
- from a text file and displays the graphics to the Macintosh screen. Logically,
- there is really only one command (besides Quit). By using the Open command
- from the File menu, one can select the the PostScript file to be displayed. As
- a test you might want to open the file “PostScript.demo”.
-
- The PostScript subset includes: moveto, rmoveto, lineto, rlineto, arc,
- translate, scale, setlinewidth, setgray, newpath, closepath, fill, stroke,
- scalefont, and show. If an unknown command is encountered an %offending
- command message is printed to the file "PS.errors". However, the program
- continues so things can get messed up in a hurry -- if for instance, paths are
- not explicitly closed or if an unknown command leaves the stack in a unknown
- state. A minor irritation is that if a file has already been displayed and
- it’s window has been closed, the file’s window must first be selected (from the
- window menu) before it can be displayed again.
-
- The goal of this project was to make a "movie" on the Macintosh and not to make
- an accurate rendition of PostScript. It was kind of fun programming for the
- Mac, though, wished I could do it more often. Even though this program will
- handle only a small subset of the PostScript language, it has been useful to me
- and I hope that you may find it useful as well. Oh yes, please freely
- distribute and improve it. If you do improve it, please mail the changes back
- to me and I’ll try to maintain the archived version.
-
- /*
- * PseudoPS -- a small PostScript interpreter (1987)
- *
- * Written by Craig E Rasmussen
- * Center for Atmospheric and Space Science
- * Utah State University
- * Logan, Utah 84322-4405
- * (801) 750-2967
- *
- * email - cer@star.stanford.edu
- * - theory::craig on the SPAN network
- *
- * with the use of SimpleTools.c (c) Erik Kilk 1986
- *
- * Link with LightSpeedC modules
- * - MacTraps
- * - math
- * - stdio
- * - strings
- * - unix
- */
-